var t = getApp();

Page({
    data: {
        show1: !1,
        order_id: "",
        img_url: "",
        btn_name: "",
        reason_data: "",
        order_state: ""
    },
    onLoad: function(t) {
        t.order_id && t.order_id;
    },
    onReady: function() {},
    onShow: function() {
        this._initData(), this._getJson();
    },
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    _initData: function() {
        this.setData({
            show1: !1,
            img_url: "",
            btn_name: "",
            reason_data: "",
            order_state: ""
        });
    },
    show1btn: function() {
        this.setData({
            show1: !0
        });
    },
    show1Close: function() {
        this.setData({
            show1: !1
        });
    },
    _getJson: function() {
        this.setData({
            img_url: ""
        });
        var n = this, a = t.getNetAddresss("remittance.remittance-record");
        a += "&order_id=" + n.data.order_id, t._getNetWork({
            url: a,
            success: function(t) {
                var a = t.data;
                1 == a.result ? n.setData({
                    img_url: a.data.report_url,
                    btn_name: a.data.button_models[0].name,
                    reason_data: a.data.audit_note,
                    order_state: a.data.status_name
                }) : wx.showToast({
                    icon: "none",
                    title: a.msg,
                    duration: 1500
                });
            },
            fail: function(t) {
                console.log(t);
            }
        });
    }
});